$(document).ready(function () {
		
		
								
		
		            
		           
					$('#Application').click(function (event) {
						$.ajax({
							url: './Application/ApplicationGrid/',
							cache: false,
							success: function (html) {
							$('#Main').html(html);
							}, 
							error: function (xhr, ajaxOptions, thrownError) {
							alert('Status: ' + xhr.status + ' Response Text: ' + xhr.responseText);
							}
						});
						$.ajax({
							url: './Application/ApplicationAccordion/',
							cache: false,
							success: function (html) {
							$('#Nav').html(html);
							}, 
							error: function (xhr, ajaxOptions, thrownError) {
							alert('Status: ' + xhr.status + ' Response Text: ' + xhr.responseText);
							}
						});
					return false
					});
		
		            $('#Admin').click(function (event) {
		                    $.ajax({
								url: './Admin/AdminAccordion/',
								cache: false,
								success: function (html) {
									$('#Nav').html(html);
									$('#Nav').show();
									return false;
								},
								error: function (xhr, ajaxOptions, thrownError) {
								    alert("Status: " + xhr.status + " Response Text: " + xhr.responseText);
								   
								}
							});	
							return false;        
						});
		
						$('#registerLink').click(function (event) {
				            $.ajax({
				                url: './Account/Register/',
				                cache: false,
				                success: function (html) {
				                    $('#Main').html(html);
				                    $('#Nav').hide();
				                    return false;
				                },
								error: function (xhr, ajaxOptions, thrownError) {
								    alert("Status: " + xhr.status + " Response Text: " + xhr.responseText);
								   
								}
				            });
				            return false;
				        });
		
				        $('#loginLink').click(function (event) {
				            $.ajax({
				                url: './Account/Login/',
				                cache: false,
				                success: function (html) {
				                    $('#Main').html(html);
				                    $('#Nav').hide();
				                    return false;
				                },
								error: function (xhr, ajaxOptions, thrownError) {
								    alert("Status: " + xhr.status + " Response Text: " + xhr.responseText);
								   
								}
				            });
				            return false;
				        });
		           
			    });
		
		
		
		
			
			